<template>
	<view>
		<uni-easyinput type=password placeholder="旧密码" class="aaa"></uni-easyinput>
		<uni-easyinput type=password placeholder="新密码" class="aaa"></uni-easyinput>
		<uni-easyinput type=password placeholder="确认新密码" class="aaa"></uni-easyinput>
		<view class="quit flex-center">
				    <view class="btn flex-center" @click="toLogout">
						<text>确认修改</text>
				      
				    </view>
				 </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
		    toLogout(){
				uni.showModal({
				    content: '确定要修改密码么',
				    success: (e)=>{
				    	if(e.confirm){
				    		this.logout();
				    		setTimeout(()=>{
				    			uni.navigateBack();
				    		}, 200)
				    	}
				    }
				});
			}
		}
	}
</script>

<style lang="scss">
	.quit{
	  height: 100rpx;
	  margin-top: 50px;
	  .btn{
	    background-color: #4f99ff;
	    border-radius: 30px;
	    width: 80%;
	    color: white;
	    font-size: 1.2em;
	    height: 100%;
	  }
	}
	.flex-center{
	  display: flex;
	  justify-content: center;
	  align-items: center;
	}
	.aaa{
		height: 100rpx;
	}

</style>
